package com.ppp.poi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@tk.mybatis.spring.annotation.MapperScan(basePackages = {"com.ppp.poi.dao"})
public class PoiApplication extends SpringBootServletInitializer {

  public static void main(String[] args) {
    SpringApplication.run(PoiApplication.class, args);
  }

  /**
   * 打war包
   * @param builder
   * @return
   */
  @Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(PoiApplication.class);
  }
}

